package com.yunc.auth.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunc.auth.dao.SysUserMapper;
import com.yunc.auth.domain.dto.UserDTO;
import com.yunc.auth.service.ISysUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author taocongcong
 * @create 2020-12-31 11:33
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SysUserServiceImpl implements ISysUserService {

    private final SysUserMapper sysUserMapper;

    @Override
    @DS("user")
    public UserDTO getByLoginName(String loginName) {
        return sysUserMapper.getByLoginName(loginName);
    }
}
